package io.gitee.zhangbinhub.admin.resource.server.po

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull

/**
 * @author zhang by 14/06/2019
 * @since JDK 11
 */
@Schema(description = "流程任务处理参数")
data class ProcessHandlingPo(
    @Schema(description = "任务id", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotBlank(message = "任务id不能为空")
    var taskId: String? = null,

    @Schema(description = "处理结果", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotNull(message = "处理结果不能为空")
    var pass: Boolean? = null,

    @Schema(description = "处理意见", requiredMode = Schema.RequiredMode.REQUIRED)
    var comment: String? = null,

    @Schema(description = "自定义流程参数")
    var params: MutableMap<String, Any> = mutableMapOf(),

    @Schema(description = "自定义本地参数")
    var localParams: MutableMap<String, Any> = mutableMapOf()
)
